🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

date-encrypt

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-encrypt

Encrypt and Decrypt Date

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

date-encrypt

Encrypt and Decrypt Date

date-encrypt npm version Bundle Zip Size Bundle Size

Getting Started

Installation

npm install date-encrypt

Usage

const dateEncrypt = require('date-encrypt');

var dt = new Date(
  1992,
  1, //It's Feb
  29,
  23,
  57,
  15
);

var enDf = dateEncrypt.encryptFullDate(dt)
console.log("encryptFullDate: ", enDf) //uLJ7Xs9
console.log("decryptFullDate: ", dateEncrypt.decryptFullDate(enDf)) //1992-02-29T23:57:15.000Z

//Below functions dont work for year and month
var enD = dateEncrypt.encryptDate(dt)
console.log("encryptDate: ", enD) //7Xs9
console.log("decryptDate: ", dateEncrypt.decryptDate(enD)) //2023-05-29T23:57:15.000Z

Project

Here is Link Github.

Author

Keywords

javascript

FAQs

Package last updated on 24 May 2024

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