crypto_tea 0.0.2 copy "crypto_tea: ^0.0.2" to clipboard
crypto_tea: ^0.0.2 copied to clipboard

A tea crypto for Dart libraries or applications.

tea加解密 for dart

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:crypto_tea/crypto_tea.dart';

main() {
    List<int> key = [1,2,3,4,5,6,7,8,9,0,11,12,13,14,15,16];
    var tt = tea(key,wheel.cycle2(),Padding().pkcs5);
    var aa = "abc";


    print(tt.encryptString(aa));
    print(tt.decryptString(tt.encryptString(aa)));

    var dest = tt.encrypt(aa.codeUnits);
    print(dest);
    print(String.fromCharCodes(tt.decrypt(dest)) == aa);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

A tea crypto for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

hex

More

Packages that depend on crypto_tea