mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
237 B
TypeScript
11 lines
237 B
TypeScript
import Cryptr = require('cryptr');
|
|
|
|
// $ExpectType Cryptr
|
|
const cryptr = new Cryptr('myTotallySecretKey');
|
|
|
|
// $ExpectType string
|
|
const encrypted_string = cryptr.encrypt('bacon');
|
|
|
|
// $ExpectType string
|
|
cryptr.decrypt(encrypted_string);
|