( ESNUG 283 Item 2 ) ------------------------------------------------ [3/5/98]
Subject: Help! How To Decrypt Encrypted Cadence SKILL Code?
> Does anyone know if is there exists any program to decrypt encrypted
> Cadence SKILL code? How about a Context?
>
> - Ng Tsz Kin
> Hong Kong University of Science and Technology
From: Carry Megens <Carry.Megens@nym.sc.philips.com>
When you have the debug features in cadence (try lbCeckOut("debug"))
you can pretty print (pp) any SKILL routine...
- Carry Megens
Philips Semiconductors Consumer IC, Nijmegen, the Netherlands
---- ---- ---- ---- ---- ---- ----
From: Hans van Walderveen <vanwal@natlab.research.philips.com>
To decrypt encripted skill you can use the following piece of skill:
procedure( NlDecrypt( inputFile @optional outputFile "tt")
prog( (inp out line)
if( inputFile then
unless( outputFile
outputFile = sprintf(nil "%s.dec" inputFile)
)
when( isFile( outputFile )
print( "You must specify a file that doesn't exist!!!\n" )
hiGetAttention( )
return()
)
unless( inp = infile(inputFile)
printf("Unable to open input file: %s\n" inputFile)
return()
)
unless( out = outfile(outputFile "w")
printf("Unable to open output file: %s\n" outputFile)
return()
)
while( line = lineread(inp)
when( line != t
pprint(line out)
)
)
close(inp)
close(out)
else
printf("You must at least specify an input file!\n")
return()
) ; ** if inputFile **
return(t)
) ; ** let **
) ; ** procedure **
This should work in both cadence 4.3.X as well as 4.4 and above.
To list stuff from protected context files, you need the debug (as mentioned
by Carry Megens), but that's something you may not get from Cadence.
- Hans van Walderveen
Philips ED&T/Services Eindhoven, The Netherlands
|
|