Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/programmer10110/gostreebog

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/programmer10110/gostreebog

  • v0.0.0-20170704145444-a3e1d28291b2
  • Source
  • Go
  • Socket score

Version published
Created
Source

gostreebog

Streebog (GOST 34.11-2012) hash implementation

Overview

Standard GOST 34.11-2012 "Information technology. CRYPTOGRAPHIC DATA SECURITY. Hash-functions" came into the effect in 2013. The standard is based on previously published hash function Streebog.

This project includes implementation of the hash function in Go.

Propositions, comments, speedup or other improvements are welcome.

Features

  • 256-bit hash function
  • 512-bit hash function

Install

go get github.com/programmer10110/gostreebog

Usage

package main

import (
	"encoding/hex"
	"fmt"
	"github.com/programmer10110/gostreebog"
)

func main() {
	message := []byte("Streebog")
	fmt.Println(hex.EncodeToString(gostreebog.Hash(message, "512"))) //512-bit hash function
	fmt.Println(hex.EncodeToString(gostreebog.Hash(message, "256"))) //256-bit hash function
}

FAQs

Package last updated on 04 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc