Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6705877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:27:18+00:00 2026-05-26T07:27:18+00:00

The docs imply that this is the syntax for a function that returns an

  • 0

The docs imply that this is the syntax for a function that returns an array of bytes. What am I doing wrong?

$ fpc ios7crypt.pas
ios7crypt.pas(3,25) Error: Type identifier expected
ios7crypt.pas(3,25) Fatal: Syntax error, ";" expected but "ARRAY" found
Fatal: Compilation aborted

ios7crypt.pas:

program IOS7Crypt;

function XlatPrime () : array of byte;
begin
    XlatPrime := (
        $64, $73, $66, $64, $3b, $6b, $66, $6f,
        $41, $2c, $2e, $69, $79, $65, $77, $72,
        $6b, $6c, $64, $4a, $4b, $44, $48, $53,
        $55, $42, $73, $67, $76, $63, $61, $36,
        $39, $38, $33, $34, $6e, $63, $78, $76,
        $39, $38, $37, $33, $32, $35, $34, $6b,
        $3b, $66, $67, $38, $37
    );
end;

function Encrypt (hash : string) : string;
begin
    Encrypt := 'abc';
end;

function Decrypt (hash : string) : string;
begin
    Decrypt := 'abc';
end;

var
    password : string;
    hash : string;
begin
    password := 'abc';

    hash := Encrypt(password);

    password := Decrypt(hash);

    write('Password: ');
    writeln(password);
end.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:27:18+00:00Added an answer on May 26, 2026 at 7:27 am

    Works for me:

    const
        XlatSize = 53;
        XlatPrime : array[0 .. XlatSize - 1] of byte = (
            $64, $73, $66, $64, $3b, $6b, $66, $6f,
            $41, $2c, $2e, $69, $79, $65, $77, $72,
            $6b, $6c, $64, $4a, $4b, $44, $48, $53,
            $55, $42, $73, $67, $76, $63, $61, $36,
            $39, $38, $33, $34, $6e, $63, $78, $76,
            $39, $38, $37, $33, $32, $35, $34, $6b,
            $3b, $66, $67, $38, $37
        );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The docs for django.core.files.File imply I can do this: print File(open(path)).url but the File
The docs for Dictionary.TryGetValue say: When this method returns, [the value argument] contains the
MSDN docs say that only value types need boxing, but this does not apply
The docs for Control.Monad.Trans.Error provide this example of combining two monads: type ErrorWithIO e
http://docs.python.org/library/imaplib.html states that: exception IMAP4.error Exception raised on any errors. The reason for the
The docs at www.fastcgi.com aren't clear on this (to me), so I hope someone
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#regroup I can think of a few ways of doing it with loops but
The docs aren't entirely clear on this - is there a difference between these
The docs on this are pretty shoddy. There are a number of events you
SQLite docs specifies that the preferred format for storing datetime values in the DB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.