Giter VIP home page Giter VIP logo

hmac.nim's People

Contributors

ba0f3 avatar facorazza avatar inv2004 avatar johnad avatar thomastjdev avatar yglukhov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

hmac.nim's Issues

Please, don't use `%` operator

Because it conflicts with json std module.

Sample:

import json, hmac
echo %*{ "hi": 0 }
test.nim(2, 6) template/generic instantiation from here
.nimble/pkgs/hmac-0.1.3/hmac.nim(40, 26) Error: type mismatch: got (int)
but expected one of:
proc toHex(sha: SHA224Digest): string
proc toHex(sha: SHA256Digest): string
proc toHex(sha: SHA384Digest): string
proc toHex(sha: SHA512Digest): string

Assertion error

de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9
a0d87be75bb531af746ab7988e1e8058e7bc17f0
F53ABED8001D0B7C8A64EDC011854BDED49E1ED55E5D5F5455B7B2ECF6506884
hmac.nim(87)             hmac
system.nim(3778)         failedAssertImpl
system.nim(3771)         raiseAssert
system.nim(2833)         sysFatal
Error: unhandled exception: result == "f53abed8001d0b7c8a64edc011854bded49e1ed55e5d5f5455b7b2ecf6506884" Incorrect hash [AssertionError]
Error: execution of an external program failed: '/Users/federico/Documents/GitHub/hmac.nim/hmac '

The toHex() proc doesn't seem to work.

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.