Warranty

This software is provided “as is” and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.

************************

To create a key:

% openssl genrsa -des3 -out private.pem 2048
Generating RSA private key, 2048 bit long modulus
......+++
.+++
e is 65537 (0x10001)
Enter pass phrase for private.pem:
Verifying - Enter pass phrase for private.pem:

Then:

% openssl rsa -in private.pem -out public.pem -outform PEM -pubout
Enter pass phrase for private.pem:
writing RSA key

************************

To Encrypt: >> require ‘REncrypt’

> true

>> privkey=‘/path/to/private.pem’

> “/path/to/private.pem”

>> pubkey=‘/path/to/public.pem’

> “/path/to/public.pem”

>> a= Rencrypt.encrypt_sensitive(pubkey, “some kind of data”)

> [“016331332e363253001363}203277342325025m026$3172212002237352>tS355340310k333&”, “}[322001206*301314030023W271025026363355214+H3600233312128302320276%353016\026315p222CQI"4"4377223(366${006332n254p034vMb310263x223364227223242:376Qfc306]374253X&343350[5243vM204tQW264300[‘341F361245316’2433713620f212217255321e3152640247311227\220226’235027-005 e313H216:242(023342I343O2130277M177r022303206025315>353247v8N*243S301177342"223n#CLv032021246301236367!003241002L2343360?225361310310S254263 037331250347355]356373276A330000275360306200G225252347001#305-237^376363020360254006233}225262230r250216T*032204221004360z232005003)312304351031006e032247$h025367rw375”, “320223343t373_276220374247360s030href=”325o334e)326A233215DEN214337325273“>354264:360261vf;W322344222235221!f313336351213371300343266_221205265v0172452521X026346210226035r?255034<331M364266232224347247tuX3702111231350F341Gb^n355202351311E230^e^230205bN#250<s263271Go0212262iq267v205357M002036Q\340`030a006(1267361L363024fV213(276:F*310200@216024241a<370032350I))224O372340320272.234335D325!273O02706375GrXV311325ml!262N256370216f305364$3502213245$<217$Z1222]tG234272304342361&uP356Z2433330242225aE224367+z020311zM371325tA264016^017376266312005”]

To Decrypt: Rencrypt.decrypt_sensitive(privkey, a, a, a, “somepasswordthatissecure”)

> “some kind of data”

>>