web-encryption

1.0.3 • Public • Published

Web Encryption

kurulum

$ npm install web-encryption

testler

    
/**
 * var sayılan olarak 100 adet şifreleme metodu oluşturmaktadır.
 */
    var encryption = require('web-encryption')();
    
    
/**
 * manuel olarak da method oluşturma sayısı belirtilebilir.
 */
    var encryption = require('web-encryption')({size:700});
    
    
/**
 * belirtilen metni şifreleyip tekrar metin haline getirme.
 */
    var encryption = require('web-encryption')({size:4});
    
    console.log(JSON.stringify(encryption.ids));
    // ["8565493895","20785706051","17792334279","21265092562"]
    
    var id = encryption.ids[1]; // "20785706051"
    
    var encrypt = encryption.encrypt('credit number: 5344-3122-8973-1235', id);
    // IİzfTk ÇvZçzİ: 68VV-8Pss-3HD8-Ps86
    
    var decrypt = encryption.decrypt(encrypt, id);
    // credit number: 5344-3122-8973-1235
    
    console.log(encryption.ids.length);// 4
    

İletişim

Package Sidebar

Install

npm i web-encryption

Weekly Downloads

4

Version

1.0.3

License

UNLICENSED

Last publish

Collaborators

  • bhenav