Giter Site home page Giter Site logo

lock-key's People

Contributors

clavoie avatar clavoie-dk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lock-key's Issues

Problem decrypting

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

Inapproriate use of AssertionError

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.