Skip to content

Encode/Decode Legend of Zelda Oracle of Ages and Oracle of Seasons secrets.

Notifications You must be signed in to change notification settings

FWeinb/oracle-secret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oracle-secret Build Status Coverage Status

Encode/Decode Legend of Zelda Oracle of Ages and Oracle of Seasons secrets.

Install

$ npm install --save oracle-secret

Usage

Load a GameSecret

import { GameSecret } from 'oracle-secret';

const secret = GameSecret.load('H~2:@ ←2♦yq GB3●( 6♥?↑6');

console.log(secret.toJSON());
//{
//  Hero: 'Link',
//  GameID: 14129,
//  Game: 'Ages',
//  Child: 'Pip',
//  Animal: 'Dimitri',
//  Behavior: 'BouncyD',
//  IsLinkedGame: true,
//  IsHeroQuest: false
//}

Create a GameSecret

import { GameSecret, SecretParser } from 'oracle-secret';

const secret = new GameSecret({
  Hero: 'Zelda',
  GameID: 4000,
  Game: 'Ages',
  Child: 'Pip\u0000\u0000',
  Animal: 'Moosh',
  Behavior: 'HyperA',
  IsLinkedGame: true,
  IsHeroQuest: true
});

console.log(SecretParser.encode(secret.toBytes()));
// 8♥3↓! -756- rS/8T 9↓Y2d

Special Thanks

About

Encode/Decode Legend of Zelda Oracle of Ages and Oracle of Seasons secrets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages