cypher 1.0.0 copy "cypher: ^1.0.0" to clipboard
cypher: ^1.0.0 copied to clipboard

discontinued

A new Flutter plugin to generate passwords which can contain digits, lower case letters, upper case letters and punctuations.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:cypher/cypher.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _password = 'No password';

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('Generated password \n\n $_password',
              textAlign: TextAlign.center,
              style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20)),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () async {
            final String password = await Cypher.create(
                length: 15,
                useDigits: true,
                useLowerCase: true,
                useUpperCase: true,
                usePunctuation: false);
            setState(() {
              _password = password;
            });
          },
        ),
      ),
    );
  }
}
3
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter plugin to generate passwords which can contain digits, lower case letters, upper case letters and punctuations.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on cypher