clavoie / lock-key Goto Github PK
View Code? Open in Web Editor NEWSymmetric encryption wrappers for Clojure
License: Eclipse Public License 1.0
Symmetric encryption wrappers for Clojure
License: Eclipse Public License 1.0
Hi, sorry to disturb you,
I want to ask something, so i'm using lock-key to encrypt - decrypt password and store it in MySQL
Problem is i can encrypt it using :
(def lock-string "tiniwinibiti")
(defn encrypting [string](encrypt string lock-string))
And store the encrypted password to MySQL
But when i try :
(defn decrypting [string](decrypt-as-str string lock-string))
From stored & encrypted password from MySQL i get :
IllegalArgumentException Value out of range for byte: ¥ clojure.lang.RT.byteCast (RT.java:993)
Can you please help?
Thank you
Recently, the exception behavior of lock-key was recently changed to raise an AssertionError. I would offer that this is an inappropriate use of that error class. AssertionError is for your own programming errors. IllegalArgumentException was perfectly appropriate before. Instead, this AssertionError now stops my program, and that ought to be for me to decide not the library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.