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

com.aayushatharva:AtomicCrypto

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.aayushatharva:AtomicCrypto

AtomicCrypto is a Java Library which uses NSA Suite B Cryptography. This means it uses AES-256-GCM to encrypt data and for asymmetric cryptography it uses ECDH with curve P-256 as default key agreement.

  • 1.2.1.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

AtomicCrypto

Java Library To Provide Cryptographic Functions

Build Status

Algorithms

AtomicCrypto uses NSA Suite B Cryptography. This means it uses AES-256-GCM to encrypt data and for asymmetric cryptography it uses ECDH with curve P-256 as default key agreement.

Requirements

You need to Install Bouncy Castle as a JCE provider.
You need the Java Crypto Unlimited Strength Policy files.

How To Use AtomicCrypto In Project

Maven

<dependency>
  <groupId>com.aayushatharva</groupId>
  <artifactId>AtomicCrypto</artifactId>
  <version>1.2.1.0</version>
</dependency>

Gradle Groovy DSL

implementation 'com.aayushatharva:AtomicCrypto:1.2.1.0'

Usage

Asymmetric Cryptography

KeyPair SenderKeyPair = KeyPair.generate();
KeyPair ReceiverKeyPair = KeyPair.generate();

AsymmetricHub SenderBox = new AsymmetricHub(SenderKeyPair.getPrivateKey(), ReceiverKeyPair.getPublicKey());
AsymmetricHub ReceiverBox = new AsymmetricHub(ReceiverKeyPair.getPrivateKey(), SenderKeyPair.getPublicKey());

byte[] Encrypted = SenderBox.encrypt("Hey!".getBytes("UTF-8"));
byte[] PlainText = ReceiverBox.decrypt(Encrypted);

Symmetric Cryptography

SecretKey key = SecretKey.generate();
SymmetricHub box = new SymmetricHub(key);
         
byte[] Encrypted = box.encrypt("Hey!".getBytes("UTF-8"));
byte[] PlainText = box.decrypt(Encrypted);	

FAQs

Package last updated on 25 Feb 2019

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