symcrypt 0.0.4
symcrypt: ^0.0.4 copied to clipboard
Symmetric encryptage with utils functions.
// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library symcrypt.example;
import 'package:symcrypt/symcrypt.dart' as Symcrypt;
main() {
String data;
String key;
String encryptData;
String decryptData;
data = "Toto";
key = Symcrypt.createHash("Key");
encryptData = Symcrypt.encrypt(data, key);
decryptData = Symcrypt.decrypt(encryptData, key);
}