Compare commits
No commits in common. "68dc7fabfb2875a6884751b801cff179abfd64d7" and "f3b4ceaa1a0506708ed1fd1d10e46afa2c09aaa1" have entirely different histories.
68dc7fabfb
...
f3b4ceaa1a
3 changed files with 5 additions and 14 deletions
|
|
@ -143,7 +143,7 @@ export default async () => {
|
|||
doc.setFontSize(8)
|
||||
doc.text(toText, toTextX, 46)
|
||||
|
||||
doc.text('Please accept payment for fee specified hereunder', 16, 50)
|
||||
doc.text('Please accept payment for fee specified herunder', 16, 50)
|
||||
|
||||
doc.text('Application No. :', pageWidth - 60, 46)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { _optn, _applicationNo, _date, _name, _type, _location, _assessor, _feeL
|
|||
import dayjs from 'dayjs'
|
||||
// @ts-ignore
|
||||
import QRCode from 'qrcode'
|
||||
import { SHA384, MD5 } from 'crypto-js'
|
||||
import { SHA3, MD5 } from 'crypto-js'
|
||||
|
||||
export default async () => {
|
||||
const PESO = import.meta.env.VITE_PESO
|
||||
|
|
@ -77,12 +77,12 @@ export default async () => {
|
|||
return await QRCode.toDataURL(text)
|
||||
}
|
||||
|
||||
const assessorFirstHash = SHA384(ASSESSORID.toString())
|
||||
const assessorFirstHash = SHA3(ASSESSORID.toString())
|
||||
const assessorSecondHash = MD5(assessorFirstHash.toString().substring(9))
|
||||
const assessorQrText = `Use OCBO e-Sign Validator - scanid=${assessorSecondHash.toString().substring(24)}`
|
||||
const assessorQr = await generateQR(assessorQrText)
|
||||
|
||||
const approverHash = SHA384(APPROVERID.toString())
|
||||
const approverHash = SHA3(APPROVERID.toString())
|
||||
const approverSecondHash = MD5(approverHash.toString().substring(9))
|
||||
const approverQrText = `Use OCBO e-Sign Validator - scanid=${approverSecondHash.toString().substring(24)}`
|
||||
const approverQr = await generateQR(approverQrText)
|
||||
|
|
@ -151,7 +151,7 @@ export default async () => {
|
|||
doc.setFontSize(8)
|
||||
doc.text(toText, toTextX, 46)
|
||||
|
||||
doc.text('Please accept payment for fee specified hereunder', 16, 50)
|
||||
doc.text('Please accept payment for fee specified herunder', 16, 50)
|
||||
|
||||
doc.text('Application No. :', pageWidth - 60, 46)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
import { SHA1, SHA384 } from 'crypto-js'
|
||||
|
||||
export default async (password: string) => {
|
||||
const firstHashing = SHA1(password)
|
||||
const secondHashing = SHA384(firstHashing.toString())
|
||||
const thirdHashing = SHA1(secondHashing.toString())
|
||||
|
||||
return thirdHashing.toString()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue