2017 © Pedro Peláez
 

library rksv

tool for RKSV encryption required by Austrian law for cash registers

image

dvelopment/rksv

tool for RKSV encryption required by Austrian law for cash registers

  • Tuesday, February 14, 2017
  • by dVelopment
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CircleCI, (*1)

RKSV encryption tool

This tool is meant be used in systems that implement the Austrian "Registrierkassensicherheitsverordnung" (yes, that's one word ...)., (*2)

This package has been developed on request by Pocketbill., (*3)

API

createAesKey

Creates a base64 encoded, random key with 256bits length. Ready to be used as input for the encryption methods and displayed to your users for registering it in FinanzOnline., (*4)

encryptTotalInEur

Just a convenience method which converts your EUR amount to cents before passing it to encryptTotalInCents. See below for the input parameters, (*5)

encryptTotalInCents

The actual encryption method. It will encrypt your total value, according to the regulations., (*6)

It takes in the following parameters:, (*7)

  • totalInCents (int) the total value you want to encrypt
  • base64AesKey (string) base64 encoded AES key to use
  • receiptNumber (string) the receipt number of the document you're about to sign
  • registerId (string) the ID of the cash register your representing
  • receiptType (string) the type of document you're about to sign. Possible values are:
    • Signer::TYPE_STANDARD just a regular receipt
    • Signer::TYPE_CANCEL the receipt for a cancellation of another receipt
    • Signer::TYPE_TRAINING a training document your users might want to create for training/testing purposes
    • Signer::TYPE_START a start document which is created when you start using a (new) cash register
    • Signer::TYPE_ZERO a "zero document" which is created every month/year or when the signature service became available again, after having been unavailable for at least 1 other document.

Usage examples

See test/RKSV/Test/SignerTest.php., (*8)

The Versions

14/02 2017

dev-master

9999999-dev

tool for RKSV encryption required by Austrian law for cash registers

  Sources   Download

The Requires

  • trafficcophp/bytebuffer ^0.3.0

 

The Development Requires

by Daniel Holzmann

14/02 2017

1.0.0

1.0.0.0

tool for RKSV encryption required by Austrian law for cash registers

  Sources   Download

The Requires

  • trafficcophp/bytebuffer ^0.3.0

 

The Development Requires

by Daniel Holzmann